﻿/* Author - Anshu Dutta - anshu.dutta@gmail.com
 * This source code is governed by terms and condition of Microsoft Public License (Ms-PL). 
 * Copyright (C)  2011 Anshu Dutta. anshu.dutta@gmail.com
 */
using System;
using RssNewsFeeder.Lib.Model.Business;
using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RssNewsFeeder.Lib.ViewModel
{
    public class NewsCategoryViewModel:ViewModelBase
    {
        private NewsCategoryCollection _newsCategoryCollection;

        /// <summary>
        /// Constructor
        /// </summary>
        public NewsCategoryViewModel()
        {
            _newsCategoryCollection = new NewsCategoryCollection();
        }

        public ObservableCollection<object> NewsCategoryCollection
        {
            get
            {                
                ObservableCollection<object> objColl = new ObservableCollection<object>();
                objColl.Add(_newsCategoryCollection.NewsCategories);                
                return objColl;                
            }
        }
        
        protected override void OnDispose()
        { 
            base.OnDispose();            
        }
    }
}
